home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-17 | 1.1 KB | 37 lines | [TEXT/JyWs] |
- <HTML><HEAD>
- <TITLE>JavaScript Alert</TITLE>
- </HEAD>
- <BODY onLoad="window.alert('Welcome!');">
- <H1>JavaScript Alert</H1>
-
- <B>This stationery page contains an example of a link that displays an alert</B>
- <P>
- Please note that JavaScript is currently only available in Netscape Navigator 2.0 or higher.<BR>
- <FONT COLOR="931B15">Do not assume that all in your audience are using a JavaScript enabled browser.</FONT>
- <HR>
- <P>
- <A HREF="#"
- onClick="window.alert('This is a special message to you!');"
- onMouseOver="window.status='This is not a regular link'; return true">Example</A> of a link displaying an alert dialog.
- <P>
- <HR>
- <P>
- <B>How to use:</B>
- <P>
- Use something like this inside the contents of your page to create a link that will display an alert.
-
- <XMP><A HREF="#"
- onClick="window.alert('This is a special message to you!');"
- onMouseOver="window.status='This is not a regular link'; return true">Example</A> of a link displaying an alert dialog.
- </XMP>
- <P>
- <HR>
- <P>
- You can use the following Body tag:<P>
- <CODE><BODY onLoad="window.alert('Welcome!');"></CODE>
- <P>
- to display an <BLINK>annoying</BLINK> alert every time the page is loaded.
-
- </BODY>
- </HTML>
-